package com.sc.admin.utils;

import org.apache.commons.codec.digest.DigestUtils;

public class MD5Utils {
	public static String encode(String s) {
		if(s == null) {
			throw new RuntimeException("被加密的字符串为空！");
		}
		return DigestUtils.md5Hex(s);
	}
	
	public static void main(String[] args) {
		System.out.println(MD5Utils.encode("111111"));
	}
}
